﻿<%@page import="com.mmy.domain.hotel.THotelBase"%>
<%@page import="com.mmy.domain.hotel.THotelRoom"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
	</head>
	<body>
		<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
						<div class="row">
							<div class="span-5 col">
								<h1>酒店管理</h1>
							</div>	
							
						 </div >
					</div>
				</header>
				<section class="container">
					
					
					<!-- 修改酒店基本信息 -->
					<div class="information" >
					<form action="saveupdatehotelroom" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>修改酒店基本信息
						</h4>
					<div class="input-container">
					<table class="info-table">
					<tr>
					<th colspan="6"><input type="hidden" name="HotelID" value="${newTHotelBase.getHotelID() }" readonly="readonly"/>
						${newTHotelBase.getHotelName() }
					的房间创建</th>
					</tr>
					<tr>
					<th><label for="RoomName">房间名称</label></th>
					<td>
					<input type="hidden" id="RoomID" name="RoomID" value="${newTHotelRoom.getRoomID() }" readonly="readonly"/>
						<input type="text" id="RoomName" name="RoomName" value="${newTHotelRoom.getRoomName() }" required="required"/><span class="mustWrite">*</span>
					</td>
					<th><label for="RoomType">房间类型</label></th>
					<td>
						<select class="select-height" id="RoomType" name="RoomType" required="required">
					
						<option value="0">单人间</option>
						<option value="1">大床房间</option>
						<option value="2">双人间</option>
						<option value="3">三人间</option>
						<option value="4">套房</option>
						</select>
					</td>
					<th><label for="RoomSize">房间大小</label></th>
					<td colspan="2">
						<input type="number" id="RoomSize" name="RoomSize" value="${newTHotelRoom.getRoomSize() }" required="required"/><label for="RoomSize">平米<span class="mustWrite">*</span></label>
					</td>
					</tr>
					<tr>
					
					<th><label for="RoomOnFloor">所在楼层</label></th>
					<td colspan="2">
					<input type="number" id="RoomOnFloor" name="OnFloor" value="${newTHotelRoom.getOnFloor() }" required="required"/><label for="RoomOnFloor">层<span class="mustWrite">*</span></label>
					</td>
				<th><label for="RoomNumber">适合住宿人数</label></th>
					<td colspan="2">
					<input type="number" id="RoomNumber" name="Number" value="${newTHotelRoom.getNumber() }" required="required"/><label for="RoomNumber">人<span class="mustWrite">*</span></label>
					</td>
				
				</tr>
				<tr >
				<th><label for="RoomWindows0">是否有窗</label></th>
					<td colspan="2">
					<input type="checkbox" id="RoomWindows0" name="Windows" value="0" /><label for="RoomWindows0">无</label>
					<input type="checkbox" id="RoomWindows1" name="Windows" value="1"/><label for="RoomWindows1">有</label>
					</td>
					
					
					<th><label for="RoomBreakfast0">是否有早餐</label></th>
					<td colspan="2">
					<input type="checkbox" id="RoomBreakfast0" name="Breakfast" value="0"/><label for="RoomBreakfast0">无</label>
					<input type="checkbox" id="RoomBreakfast1" name="Breakfast" value="1"/><label for="RoomBreakfast1">有</label>
					</td>
					
				</tr>
				<tr >
				<th><label for="RoomWifi0">是否有Wifi</label></th>
					<td colspan="2">
					<input type="checkbox" id="RoomWifi0" name="Wifi" value="0" /><label for="RoomWifi0">无</label>
					<input type="checkbox" id="RoomWifi1" name="Wifi" value="1"/><label for="RoomWifi1">有</label>
					</td>
					
					
					<th><label for="RoomNetwork0">是否有早餐</label></th>
					<td colspan="2">
					<input type="checkbox" id="RoomNetwork0" name="Network" value="0" /><label for="RoomNetwork0">无</label>
					<input type="checkbox"  id="RoomNetwork1" name="Network" value="1"/><label for="RoomNetwork1">有</label>
					</td>
					
				</tr>
				<tr>
				
				
					<th><label for="RoomImg">房间图片</label></th>
					<td colspan="5">
						<input type="file" id="RoomImg" name="ImgPath" value="${newTHotelRoom.getImgPath() }"/><span class="mustWrite">*</span>
					</td>
		
				</tr>
				<tr>
					<th><label for="RoomMemo">备注</label></th>
					<td colspan="5">
						<textarea id="RoomMemo" name="Memo">${newTHotelRoom.getMemo()}</textarea>
					</td>
					
				</tr>
				
			</table>
			<center>
				<input type="submit" class="btn" value="保存" />
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
			</center> 
			</div>
			</form>
			</div>
			</section>
			</article>
			</main>
			<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>